home *** CD-ROM | disk | FTP | other *** search
/ Sprite 1984 - 1993 / Sprite 1984 - 1993.iso / src / lib / include / sun4.md / RCS / machparam.h,v < prev    next >
Encoding:
Text File  |  1990-05-02  |  2.8 KB  |  132 lines

  1. head     1.3;
  2. branch   ;
  3. access   ;
  4. symbols  ;
  5. locks    ; strict;
  6. comment  @ * @;
  7.  
  8.  
  9. 1.3
  10. date     90.05.02.16.52.42;  author rab;  state Exp;
  11. branches ;
  12. next     1.2;
  13.  
  14. 1.2
  15. date     89.07.17.16.52.08;  author mgbaker;  state Exp;
  16. branches ;
  17. next     1.1;
  18.  
  19. 1.1
  20. date     89.01.23.12.48.55;  author mendel;  state Exp;
  21. branches ;
  22. next     ;
  23.  
  24.  
  25. desc
  26. @Parameters from the sun4.
  27. @
  28.  
  29.  
  30. 1.3
  31. log
  32. @Commented out extra characters following endif.
  33. @
  34. text
  35. @/*
  36.  * machparam.h --
  37.  *
  38.  *    This file contains various machine-dependent parameters needed
  39.  *    by UNIX programs running under Sprite.  This file includes parts
  40.  *    of the UNIX header files "machine/machparm.h" and
  41.  *    "machine/endian.h".  Many of things in the UNIX file are only
  42.  *    useful for the kernel;  stuff gets added to this file only
  43.  *    when it's clear that it is needed for user programs.
  44.  *
  45.  * Copyright 1988 Regents of the University of California
  46.  * Permission to use, copy, modify, and distribute this
  47.  * software and its documentation for any purpose and without
  48.  * fee is hereby granted, provided that the above copyright
  49.  * notice appear in all copies.  The University of California
  50.  * makes no representations about the suitability of this
  51.  * software for any purpose.  It is provided "as is" without
  52.  * express or implied warranty.
  53.  *
  54.  * $Header: /sprite/src/lib/include/sun4.md/RCS/machparam.h,v 1.2 89/07/17 16:52:08 mgbaker Exp Locker: rab $ SPRITE (Berkeley)
  55.  */
  56.  
  57. #ifndef _MACHPARAM
  58. #define _MACHPARAM
  59.  
  60. #ifndef _LIMITS
  61. #include <limits.h>
  62. #endif
  63.  
  64. /*
  65.  *----------------------
  66.  * Taken from endian.h:
  67.  *----------------------
  68.  */
  69.  
  70. /*
  71.  * Definitions for byte order,
  72.  * according to byte significance from low address to high.
  73.  */
  74. #define LITTLE_ENDIAN   1234    /* least-significant byte first (vax) */
  75. #define BIG_ENDIAN      4321    /* most-significant byte first (IBM, net) */
  76. #define PDP_ENDIAN      3412    /* LSB first in word, MSW first in long (pdp) */
  77.  
  78. #define BYTE_ORDER      BIG_ENDIAN   /* byte order on sun3 */
  79.  
  80. /*
  81.  *----------------------
  82.  * Miscellaneous:
  83.  *----------------------
  84.  */
  85.  
  86. /*
  87.  * The bits of a address that should not be set if word loads and stores
  88.  * are done on the address. This mask intended for fast byte manipulation
  89.  * routines.
  90.  */
  91.  
  92. #define    WORD_ALIGN_MASK    0x3
  93.  
  94. /*
  95.  * Sizes of pages and segments.  SEGSIZ is valid only on Suns, and used
  96.  * only in EMACS, I think.  I'm not sure why it should get used anywhere.
  97.  */
  98.  
  99. #define PAGSIZ 0x2000
  100. #define SEGSIZ 0x40000
  101.  
  102. #endif /* _MACHPARAM */
  103. @
  104.  
  105.  
  106. 1.2
  107. log
  108. @Changed SEGSIZ to correct value for sun4.
  109. @
  110. text
  111. @d20 1
  112. a20 1
  113.  * $Header: /sprite/src/lib/include/sun4.md/RCS/machparam.h,v 1.1 89/01/23 12:48:55 mendel Exp Locker: mgbaker $ SPRITE (Berkeley)
  114. d68 1
  115. a68 1
  116. #endif _MACHPARAM
  117. @
  118.  
  119.  
  120. 1.1
  121. log
  122. @Initial revision
  123. @
  124. text
  125. @d20 1
  126. a20 1
  127.  * $Header: machparam.h,v 1.4 88/08/01 08:13:47 ouster Exp $ SPRITE (Berkeley)
  128. d66 1
  129. a66 1
  130. #define SEGSIZ 0x20000
  131. @
  132.